<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>资源导航</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    <style>
        /* 基础样式 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            color: #fff;
            line-height: 1.6;
            min-height: 100vh;
            padding: 2rem;
        }

        /* 容器样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        /* 标题样式 */
        .header {
            text-align: center;
            margin-bottom: 3rem;
            position: relative;
        }

        .header h1 {
            font-size: 2.5rem;
            background: linear-gradient(45deg, #4cc9f0, #7209b7);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            display: inline-block;
        }

        /* 搜索框 */
        .search-box {
            margin: 2rem 0;
            text-align: center;
        }

        #searchInput {
            width: 60%;
            max-width: 500px;
            padding: 1rem;
            border: none;
            border-radius: 25px;
            background: rgba(255, 255, 255, 0.1);
            color: #fff;
            font-size: 1.1rem;
            transition: all 0.3s ease;
        }

        #searchInput:focus {
            outline: none;
            box-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
        }

        /* 链接卡片容器 */
        .links-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            padding: 1rem;
        }

        /* 单个链接卡片 */
        .link-card {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 15px;
            padding: 1.5rem;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(76, 201, 240, 0.2);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            cursor: pointer;
        }

        .link-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
            background: rgba(76, 201, 240, 0.1);
        }

        .link-card a {
            text-decoration: none;
            color: inherit;
            display: flex;
            align-items: center;
        }

        .link-icon {
            font-size: 1.8rem;
            margin-right: 1rem;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(45deg, #4cc9f0, #7209b7);
        }

        .link-content h3 {
            color: #4cc9f0;
            margin-bottom: 0.5rem;
        }

        .link-content p {
            color: #a0a0a0;
            font-size: 0.9rem;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .links-container {
                grid-template-columns: 1fr;
            }
            
            #searchInput {
                width: 90%;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>资源导航</h1>
        </div>

        <div class="search-box">
            <input type="text" id="searchInput" placeholder="搜索资源..." autocomplete="off">
        </div>

        <div class="links-container" id="linksContainer">
            <!-- 链接卡片模板 -->
            <div class="link-card">
                <a href="https://github.com" target="_blank">
                    <div class="link-icon"><i class="fab fa-github"></i></div>
                    <div class="link-content">
                        <h3>GitHub</h3>
                        <p>全球最大的开源代码托管平台</p>
                    </div>
                </a>
            </div>

            <!-- 更多链接卡片... -->
        </div>
    </div>

    <script>
        // 动态生成更多示例链接
        const links = [
            {
                icon: 'fa-code',
                title: 'MDN Web Docs',
                url: 'https://developer.mozilla.org',
                description: 'Web 开发技术文档'
            },
            {
                icon: 'fa-newspaper',
                title: 'Medium',
                url: 'https://medium.com',
                description: '优质技术文章平台'
            },
            {
                icon: 'fa-video',
                title: 'YouTube',
                url: 'https://youtube.com',
                description: '视频学习平台'
            },
            {
                icon: 'fa-book',
                title: 'Wikipedia',
                url: 'https://wikipedia.org',
                description: '免费百科全书'
            },
            {
                icon: 'fa-palette',
                title: 'Dribbble',
                url: 'https://dribbble.com',
                description: '设计师交流社区'
            },
            {
                icon: 'fa-music',
                title: 'Spotify',
                url: 'https://spotify.com',
                description: '音乐流媒体平台'
            }
        ];

        const container = document.getElementById('linksContainer');

        links.forEach(link => {
            const card = document.createElement('div');
            card.className = 'link-card';
            card.innerHTML = `
                <a href="${link.url}" target="_blank">
                    <div class="link-icon"><i class="fas ${link.icon}"></i></div>
                    <div class="link-content">
                        <h3>${link.title}</h3>
                        <p>${link.description}</p>
                    </div>
                </a>
            `;
            container.appendChild(card);
        });

        // 搜索功能
        const searchInput = document.getElementById('searchInput');
        searchInput.addEventListener('input', function(e) {
            const searchTerm = e.target.value.toLowerCase();
            const cards = document.querySelectorAll('.link-card');

            cards.forEach(card => {
                const text = card.textContent.toLowerCase();
                card.style.display = text.includes(searchTerm) ? 'block' : 'none';
            });
        });

        // 添加悬停动画
        document.querySelectorAll('.link-card').forEach(card => {
            card.addEventListener('mouseenter', () => {
                card.querySelector('.link-icon').style.transform = 'rotate(15deg) scale(1.1)';
            });
            
            card.addEventListener('mouseleave', () => {
                card.querySelector('.link-icon').style.transform = 'rotate(0) scale(1)';
            });
        });

        // 添加点击动画
        document.querySelectorAll('.link-card').forEach(card => {
            card.addEventListener('click', (e) => {
                if (e.target.tagName === 'A') return;
                card.style.transform = 'scale(0.95)';
                setTimeout(() => {
                    card.style.transform = '';
                }, 200);
            });
        });
    </script>
</body>
</html>